<form id="form_patrocinador" name="form_patrocinador"
	action="<?php echo url_for('patrocinador/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id_patrocinador='.$form->getObject()->getIdPatrocinador() : '')) ?>"
	method="post"
	<?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
	<?php if (!$form->getObject()->isNew()): ?>
	<input type="hidden" name="sf_method" value="put" />
	<input type="hidden" name="id_patrocinador" value="<?php echo $form->getObject()->getIdPatrocinador() ?>" /> <?php endif; ?>
	<?php echo $form->renderHiddenFields() ?>
<table class="form">
	<tbody>
		<tr>
			<th colspan="2" class="title">Dados patrocinador</th>
		</tr>
		<?php echo $form->renderGlobalErrors() ?>
		<tr>
			<th><?php echo $form['nome']->renderLabel() ?></th>
			<td><?php echo $form['nome'] ?> <?php echo form_error('patrocinador[nome]'); ?>
			</td>
		</tr>
		<tr>
			<th><?php echo $form['url']->renderLabel() ?></th>
			<td><?php echo $form['url'] ?> <?php echo form_error('patrocinador[url]'); ?>
			</td>
		</tr>
		<tr>
			<th><?php echo $form['status']->renderLabel() ?></th>
			<td><?php echo $form['status'] ?> <?php echo form_error('patrocinador[status]'); ?>
			</td>
		</tr>
	</tbody>
</table>

<?php
	comandos_form(
		link_to(
			':: Voltar ::',
			'patrocinador/list',
			array('class' => 'botao')
		),
		submit_tag(
			':: Salvar ::',
			array('class' => 'botao')
		)
	);
?>
</form>

<script>
$(document).ready(function(){
	App.formdata.save();
});
</script>